If standard cursor configuration (__wt_cursor_init) fails opening a
metadata cursor, close the already opened cursor on the underlying
file, found by inspection.