[CHEF-4110-10stable] Add a "whyrun_safe" attribute to ruby_block

The 10-stable pull request for CHEF-4110.