I believe when connection pool running out of available
resources, there will be all kinds of weird consequences
following. So let's print warning logs when we are going
to waiting indefinitely for the lock
Change-Id: I5ca930cada523bc77c644703a0f02b9160816231
Related-bug: #1871813
(cherry picked from commit 96300a3221)
(cherry picked from commit 39f770f55b)
(cherry picked from commit 1613b7a968)
(cherry picked from commit fd795bbb8f)