fixed bug of mutex in linux platform
change mutex to spinlock
change mutex to spinlock in linux platform