tempfile: Add rename_tempfile_into_place