[3.10] bpo-25872: Add unit tests for linecache and threading (GH-25913) (GH-26212)

(cherry picked from commit 115dea9e2602b96b63390f00cc880e90c433efa2)

Co-authored-by: uniocto <serit142sa33go@gmail.com>
2 files changed