Added lock in Append() and ExtractMsg() methods of the MsgBuffer.cs.
Removed the lock from both Receiver.cs and Parser.cs.