[ARM] 3616/1: fix timer handler wrap logic for a number of platforms