In her new memoir, Smith praises her co-star's “honesty about her sexuality.”