make linux_rw locks work again