Fix thread detection to work in SBCL implementations that don't support
threading.