[lib] Update threadUIName to handle MinimallyEncodedThreadInfo
Summary:
Just needed to add some branching to appease flow.
Depends on D9847
Test Plan: NA
Reviewers: ashoat, ginsu, tomek, rohan
Reviewed By: ashoat
Differential Revision: https://phab.comm.dev/D9848