[sr-dev] git:sr_3.0: tls: fix state change while waiting for lock return