Zend Thread Safe support

Zend Thread Safe support.