[CHEF-4110-10stable] Add a whyrun_safe_ruby_block resource

The 10-stable pull request for CHEF-4110.