add back mosquitto's WITH_THREADING preprocessor macro

removed by mistake in 0c0c013
Fix potential memory issue for applications with high throughput.