Prevent invalid lock files