Various fixes on JAVA-594.

- fix log acquisition pattern
- increase lock timeout
- fix deadlock when a connection created for a suspected host is
  defunct.