emacs: Check that lazy-lock-mode exists before using it.