use alternatives when posix spinlocks are not available