(Merge 3.2) test_pydoc: skip PydocServerTest if thread support is disabled