=tes #15808 infinity handling and freeze locate to use "."

// backport of https://github.com/akka/akka/pull/15810 (with pulling in the infinity support from the master branch right away)
are we sure there are no other duration types than `FiniteDuration`, `Duration.MinusInf` and this assumed positive infinity? Is `Duration` sealed?