Implement lockorder checking on RwLocks in debug_sync