std atomic_flag wait