ENG-5939: Wait for snapshot sync thread on snapshot close.

Otherwise the channel may be closed before the last sync task runs, then it will
generate an error message.
ENG-5939: Ignore CancellationException when shutting down snapshot sync task.
Merge pull request #1172 from VoltDB/ENG-5939

ENG-5939: Wait for snapshot sync task to finish on close