Fix up unpack locking.

- don't lock waiting threads forever. If the postgres has not shown up in 60 seconds, bail.
- findbugs fixes.