[lib] Narrow canToggleMessagePin and useCanToggleMessagePin types
Summary:
To make it clear which should be used in which scenario (RawThreadInfo vs ThreadInfo).
Depends on D11820
Test Plan: flow + close reading
Reviewers: ashoat, ginsu, tomek, varun
Reviewed By: ashoat
Differential Revision: https://phab.comm.dev/D11822