add loop .detectlock in mutex.s and finish, fix loop 00FFFFFF in atomic.c