SERVER-12274 make osx happy by explicitly stack-alloc'ing temporary