[ast] Move ActorIsolation::dump out of line so we don't call print in a header.
This works around a layering violation where libSwiftBasic includes parts of the
AST even though it shouldn't.
(cherry picked from commit 5e6b247e0921eeb691e3034bd73adf0edcf3fdbd)