rwsem: Test for no active locks in __rwsem_do_wake undo code