lock gopmfile