I wasn't able to make this work at all, I resorted to writing the following in my site-cookbooks/base/attributes/default.rb
:
override.elasticsearch[:bootstrap][:mlockall] = false
It appears that the Chef 11 attribute resolution precedences changed quite a lot: http://www.opscode.com/blog/2013/02/05/chef-11-in-depth-attributes-changes/.