lib: Update RWSEM to Linux 3.10 and other many changes included