Fixes PGXC blocked by acquiring TwoPhaseStateLock.
Reported by ZhangJulian.