traits: use lvalue shared_ptr in has_register_function check.
traits: use lvalue shared_ptr in has_register_function check.

It is reasonable for event_sinks to expect an lvalue because they need
to store a weak_ptr to the callback.

CasparKielwein/flexcore,FlexCoreLib/flexcore