Add timeout to system commands.

That should prevent watch(1) blocking on waitpid(2) which causes
desynchronisation.