make sure Test::More doesn't interfere with test error counts
only work around Carp::Heavy on ancient Carp

The workaround used for pre-ancient Carp doesn't work for ancient Carp.
Instead, use a more restricted workaround that only fixes issues with
Carp::Heavy in safe compartments.