CID-1116248: Synchornize method in SynchronousListener

Signed-off-by: Rohit Yadav <rohit.yadav@shapeblue.com>