Small fix for a race condition which occurred between the
InMemoryMessage receiving new data and its invocation of the stop method
which might have prevented the recently added data from being forwarded
to the disk writer.