Python 2.4 compatability fix for thread.is_alive