Work around lxml GIL