(__open_catalog): Compare result of mmap with MAP_FAILED and not -1.