added lock for sleep_list