Reduce Python reference cycles especially when interacting with MS Word (#11414)
* Ensure XMLParser does not create reference cycles by not holding the internal parser at the same time as assigning our object's methods to it.
* WordDocumentTextInfo: refactor the lazyControlField so that it is no longer inline and does not create a reference cycle.
* EditableTextWithAutoSelectDetection: terminate automatic select detection in loseFocus event to ensure that NVDAObjects don't hold on to the TextInfo representing the selection for ever.
* Fix linting issues
* Address review comments