Explicitly pass capture_locals to get_stack_info