node,timers: fix beforeExit with unrefed timers
Attempts to fix https://github.com/nodejs/node/issues/1264.
My first actual c++ ever, done from an airport and low on time so I'm sure it'l need cleanup, especially about the _unrefed
bit.
cc @trevnorris, @bnoordhuis