Binary to sleep (and lock, if it is set to do so) an OS X machine programmatically