set window.__nwWindowId when installing Node symbols

Fix #1519 in a better way. See 0b0dfe625 in Chrome repo