Optimize DynamicObject::HasAuthority().

Refs #5049