We need to get rid of usages of `threads.default_role` throughout the codebase so we can eventually drop the column.
This diff handles the usage in `validate-role-permissions.js`
Existing code: Fetches the default_role for the thread for each role so we can determine what permissions blob the role should have.
Depends on D9977
Addresses part of [[ https://linear.app/comm/issue/ENG-5833/update-code-that-uses-default-role-from-mariadb | ENG-5833 ]]