Solving the cohomological equation for locally Hamiltonian flows, part II: Global obstructions | Synapse