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