threadshare: build Pad{Src,Sink} with handlers
Handlers for Pad{Src,Sink}
are assigned when prepare
is called
which prevents them from handling pre-prepare queries.
Second commit is a slight optimization. See commit's comment. One might think it's not worth it, so I wouldn't argue if you'd prefer removing it. :)