Relace the calls to ubus_free() with ubus_free_context()
This is to avoid memory corruption issue that happens when more than one thread calls ubus_free() which frees the global buffer which is defined in libubus.
This is to avoid memory corruption issue that happens when more than one thread calls ubus_free() which frees the global buffer which is defined in libubus.