convert ext/sockets to work with the static tsrm cache pointer