A flux-based threshold for anaerobic activity in the ocean