Protein conformational flexibility modulates kinetics and thermodynamics of drug binding