Bug-22495: Added synchronization to OutputDataStream class to prevent threads from corrupting the BufferSegment linked list.
Bug-22501: Modified beepcore InputDataStream methods to use synchronized() to prevent threads from corrupting data. Also fixed a spot in the receiveFrame method that was not being properly synchronized.