[cmaster-next] [PATCH] lib: Partial Revert of 4ecc09d and modify zclient connect behavior