Wrap shared stash in a mutex