lib/rwsem.c: fix compatibility issues with Linux 3.0.y