put lock in the message envelop