[skcq] Fix deadlock in db.go
[skcq] Fix deadlock in db.go

Bug: skia:12053
Change-Id: I9fb0c9784aaf8ae0fab9d3d05cc6abeb3e5d5466
Reviewed-on: https://skia-review.googlesource.com/c/buildbot/+/427102
Reviewed-by: Joe Gregorio <b9cf2471ff6d33504cafe8e6f356b732b2cadced@google.com>
Commit-Queue: Ravi Mistry <9fa2e7438b8cb730f96b74865492597170561628@google.com>

google/skia-buildbot,google/skia-buildbot,google/skia-buildbot,google/skia-buildbot,google/skia-buildbot,google/skia-buildbot,google/skia-buildbot,google/skia-buildbot