Fix test for unique_lock