locking/rtmutex: Inline chainwalk depth check