ldb: Ensure we can open a new LDB after a fork()