Remove the execfail method from lib/puppet/util/execution.rb as its deprecated.
Merged to main in https://github.com/puppetlabs/puppet/commit/507d8cc1c1ae0cfdcb7f3f2f33faef985058e225