SOC-3906, SOC-3915, WIKI-754: Empty Activity Stream

Fix description
* Make sure the JCR session creates comment successfully.
* Apply the lock mechanism when executing multi-threading.