I’m not sure how to properly debug this but I recently learned about Sysprof which lends some insight with little additional effort. The freeze when right-clicking to open the context menu:
And a similar freeze when clicking Item → Open With Default Application:
Both look related to reading file type associations, like the problem might be occurring around DServiceMenu::servicesForOpenWith
.