implemented lock_data successfully in File::read