1) "that" in this sentence has no own, true sense.
it is only kind of conctruction, you also can say:
That is second time it had happen in this year.
It is happend second time (twice) this year.
2) a) = it has happen in the past.
b) = it would/ may/ can (possible) happen in the past, but it didn't
Correct me, if I wrong