test: avoid timer race in event loop delay test