Optionally register stacks with valgrind