Added config option to control filling of thread stacks with a pattern.