LPS-32090 Ensure ResourceBlockLocalService's reference count logic is wo...

...rking on all major supported databases