WIP-8797: fix python thread hanging bug

sys.exit does not guarantee garbage collection in threads, possibly
preventing Rados.shutdown() from being called causing python to hang due
to http://bugs.python.org/issue21963 .

Signed-off-by: Joe Julian <me@joejulian.name>