mutex in mailbox changed to pthread one