Renames flag to --no-lock and adds warning when --lock is used
Makes getpcmd and thereby process locking MacOSX-compatible