[CHEF-3432] fix LWRP class leak in 10-stable

Backport of https://github.com/opscode/chef/pull/722