[corlib] Improve TimeSpan custom formatting. Fixes #17699