fixed 'deadlock' for shared spinlocks

Issue was: https://github.com/actor-framework/actor-framework/issues/183