node: add HandleScope to prevent memory leak

MakeCallback can only be called from a valid v8::HandleScope.

Fixed #6487
src: check for leaked handles

Add an assert that checks that no handles have leaked into the top-level
HandleScope.
src: fix Environment::GetCurrent() usage