BS-10495: dump Thread stack in case of failure in order to understand
why the action takes so many time