Turn off internal display without closing lid
Run sudo nvram boot-args=iog=0x0 and restart. It restores the behavior on 10.6 and earlier where the internal display is not turned back on if the lid is opened in clamshell mode.

You can delete the variable with sudo nvram -d boot-args.

Other related questions here and at Super User.