locking/rt: Add base code for RT rw_semaphore and rwlock