fixed ZTS build on linux

It's been too much of good, so reverted
ae05dec18088b249bddb023d08cb8474705e9163. Passing tsrm_ls won't work,
all the libpurple API and PHP API have to share the same thread.