fixed 'deadlock' for shared spinlocks
Merge pull request #185 from nq-ebaratte/fix_locks

fixed 'deadlock' for shared spinlocks