Holomorphic generating functions for invariants counting sheaves on Calabi-Yau 3-folds