tests: use sig_atomic_t in SIGINT handler