Add another failsafe in case pkgng database is locked during concurrent builds