A decorator for ensuring only one instance of a command can run on a machine.