Here’s the link to an article on how to configure this setting:
http://www.askdavetaylor.com/disable_wake_on_lid_open_on_macbook.html
Apple, MacBook Pro, troubleshooting