Lock file to prevent parallel runs