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.
Merge commit 'bcc0f9b4c6d7a73cba19818a30581b844b1e233b' into HEAD