Provide a generic getGlobalBlockingDatabase function

Like core, rather than having getGlobalBlockingSlave/getGlobalBlockingMaster
functions which do pretty much the same thing and checking which one we want
in some cases.

Change-Id: I2756e5d56a2294367b9f39af10eb0ed2d973560e