You definitely can build a thread-safe module, you probably have non-
thread-safe PHP libraries lurking somewhere that the module is linking
against. Try:
1. Starting over from a fresh checkout of the source, so you don't
have any lingering non-thread-safe linkage.
2. Run:
$ /path/to/zts/phpize
...instead of just phpize.
3. Then ./configure && make install should compile against/link to to
the correct php.
Probably there's still a non-thread-safe phpize on your system that's
further up your PATH than the thread-safe one is.