io_uring/msg_ring: move double lock/unlock helpers higher up