sha1-file: close fd of empty file in map_sha1_file_1()