ubik: take DB lock in ubik_GetVersion