refs #4610 use existing methods, lock does not work on Windows (yet), save locks in a separate folder