Wait for metadata before returning torrent hash