Fix up unpack locking.

- don't lock waiting threads forever. If the postgres has not shown up in 60 seconds, bail.
- findbugs fixes.
Merge pull request #11 from hgschmie/master

Fix up unpack locking.