Fix: Panic due to concurrent map r/w

Merged Akshay Bharambe requested to merge ab_Fix_StatemdlBreaking into devbranch

Fix: Panic due to concurrent map r/w. The Marshall function can read from referenced maps, at the same time one can update the activty/query stats. This MR uses the existing lock to avoid concurrent map read/write.

Edited by Akshay Bharambe

Merge request reports