autostart-emacs: Use flock instead of lockfile