Fix hanging watch_file test