Fix a major performance issue with docstring fold level detection, especially if the file contains long docstrings