Adding thread safety to MqttDatastreamAction `act` method
Adding thread safety to MqttDatastreamAction act
method and implement a simple but efficient cache for datastore instances (database connections).
Even if paho.mqtt.client is single threaded at the moment I have the strong feeling that we should handle the act
with thread safety in mind.
Attention: Code is untested!