fn skip_barrier<F: Flags>( old_state: F, ordered_uses_mask: F, new_state: F, ) -> bool
Returns true if the transition from one state to another does not require a barrier.