Controlling Mac lock state
