Fixed a failure in cSquid.

Probably due to rounding errors the squid was querying out-of-chunk coords.
Fixed a possible deadlock on client disconnect.