clean barriers when aborting thread that in balance mode