z_tempfile: add is_tempfile/1