events: implement EventEmitter#getMaxListeners()

fixes https://github.com/joyent/node/issues/8237