[XWALK-DRIVER] modify the http handler into thread safety model