Fix spinlock issue, created MUTEX_LOCK, UNLOCK