Added test case for rw spinlock, fixed bug in processing rw spinlocks