common: tls, fix for pending reads