refactor into non-reentrant version

git-svn-id: svn://svn.twistedmatrix.com/svn/Twisted/branches/desynchronize-2673-2@43329 bbbe8e31-12d6-0310-92fd-ac37d47ddeeb