add missing Boost Thread join_all() calls during shutdown

- fixes #3037 by adding missing join_all() calls and brings bitcoind
  shutdown code in line with Bitcoin-Qt shutdown code