Estimate duration of last function in trace

Often times, the last function in a trace (or sub-trace) doesn't get closed &
duration isn't displayed. This estimates the minimum duration for this case by
assigning the maximum known time value when unknown.