Lock file state