Add RWSpinLock unit test

Add RWSpinLock unit test