Fix py3.2 specific EDEADLK related bug.