back-bdb cache wrong lock ordering