Use condition variables and POSIX broadcast for autosave thread, allowing for relatively instant quitting.