Update threads32.c

I made some minor changes, including commenting, but it works on seven pretty significant test/corner cases, so I think we should be set with this.