add_entry calls _append_to_file method which checks for a file lock and holds it. I have verified that part