`assignThreadContainerToMedia` will be used as part of `updateThread` in subsequent diff to handle image thread avatars.
NOTE: We're intentionally not setting the `thread` field of the upload row because we don't want the avatar to show up in the result set of `fetchMediaForThread`.
---
Depends on D7375