Small changes

lwmutex completely implemented