Change logic: Change Sleep with shared_mutex