Fold related stacks in Java thread dumps