BS-10807: use select instead of click to try avoiding unstability
BS-10829: dump thread stack on failure to investigate onrandom failure