locking: combine get_delete_on_close_flag() and get_write_time() into get_file_infos()