Ruby 3.3 リファレンスマニュアル > ライブラリ一覧 > monitorライブラリ > Monitorクラス > mon_locked?
mon_locked? -> bool
モニターがロックされているときに true を返します。