tls: fix state change while waiting for lock return
tls_h_fix_read_conn() did not return the right thing if the state
changed while waiting for the lock (the fall-through return was
error instead of success).
Reported-by: Couprie Geoffroy geoffroy couprie atosorigin com
(cherry picked from commit 513c21f67f88484dd12dd6adce6d6ddc7fb60c31)