Fix Streamer when the UserInfo contained TRef-ed objects.

When TTree::fUserInfo contains (directly or indirectly) an
object that is referenced by a TRef and (one of) the TTree
being processed has the BranchRef enabled, the TObject
Streamer will incorrectly.

See also ROOT-5922.