s4-dsdb: Check if metadata.tdb exists, before trying to open it