gh-101517: make bdb avoid looking up in linecache with lineno=None (#101787)

3 files changed