pack.FilePackIndex: close mmap object
_load_file_contents may return a mmap object, so self._contents could be
mmap-ed. Close it if so.
Note: we use hasattr() instead of isinstance() for pre-Python 2.6
compatibility (mmap became a class in Python 2.6).
Signed-off-by: Jelmer Vernooij <jelmer@samba.org>