protect message container with mutex