Avoid wfWaitForSlaves() call when in a transaction in ActiveUsers

* This does not do anything except waste time and connections.
  The query should be small in that case anyway.

Change-Id: I010b3f09be36202ccf408e1a2b084fee0a598ff9
Merge "Avoid wfWaitForSlaves() call when in a transaction in ActiveUsers"