locking/rtmutex: Extend the rtmutex core to support ww_mutex