fix Issue 11489, add cast from const(LocalTime) to immutable

https://d.puremagic.com/issues/show_bug.cgi?id=11489

Supplemental fix for https://github.com/D-Programming-Language/dmd/pull/2749