message: Fixes Message transmission order undefined (6.0.0 regression)
diff: @@ -120,6 +120,7 @@ export class WriteableStreamMessageWriter extends AbstractMessageWriter implemen
  }
  public async write(msg: Message): Promise<void> {
  + return this.writeSemaphore.lock(async () => {
  const payload = this.options.contentTypeEncoder.encode(msg, this.options).then((buffer) => {
  if (this.options.contentEncoder !== undefined) {
  return this.options.contentEncoder.encode(buffer);
  @@ -136,17 +137,17 @@ export class WriteableStreamMessageWriter extends AbstractMessageWriter implemen
  this.fireError(error);
  throw error;
  });
  + });
  }
  - private doWrite(msg: Message, headers: string[], data: Uint8Array): Promise<void> {
  - return this.writeSemaphore.lock(async () => {
  + private async doWrite(msg: Message, headers: string[], data: Uint8Array): Promise<void> {
  try {
  await this.writable.write(headers.join(''), 'ascii');
  return this.writable.write(data);
  } catch (error) {
  this.handleError(error, msg);
  + return Promise.reject(error);
  }
  - });
  }
  private handleError(error: any, msg: Message): void {
  