test-stat-time, test-utimens: improve portability