rwsem: fix compatibility issues with Linux 3.0.y