Add barrier to coordinate thread startup

(cherry picked from commit e9d85c3804e41730ccbe07efa36bf360ceb4f7e6)
SERVER-13181: Query Memory Leaks

(cherry picked from commit 7510a554b8f38db470216c8213563b7c25a70896)
SERVER-13181: Fix BtreeBulk leaks
- Fix leak in buildAnIndex - initiateBulk allocates a BtreeBulk which is never deleted
- Fix leak in MultiIndexBlock - we are leaking BtreeBulk since we use a raw pointer

(cherry picked from commit 25aac5429dca3dfae108c6137a12d1ed48483b82)
SERVER-13181: Fix memory leaks in indexing

(cherry picked from commit 4f05d9ec581d0ab770200e3629ba25eee3715585)
SERVER-13033: Fix bad static initializer

(cherry picked from commit f0b367f3e04408f66fcc8f5bac1425155deec5c3)
SERVER-13181: Fix build break

(cherry picked from commit 57eea817bbf74f34113b61e3fbae36d08132b770)