Make trait lifetime parameters early bound in static fn type.  This is related
to #5121.

Fixes #10391.