[corlib] Fix extra await context switch when custom SynchronizationContext does not change. Fixes #17878