WIP-8797: work around python thread hanging bug

Due to the changes related to http://bugs.python.org/issue21963
and the fact that Rados.shutdown() dumps core, this workaround
unreferences the thread allowing sys.exit to complete.