Fix missing retain + autorelease in TLS-object handling.