tests-extra: add 'info threads' into backtrace
tests-extra: add sleep before flush to ensure control socket is created