db/db_impl.cc: reduce scope of prefix_initialized

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>