thin_dump.cc: fix metadata snapshot logic