PNaCl : Added threading to pnacl.nit

Added threading to pnacl.nit in order to launch Nit on a new thread and still be capable of handling messages.