Massless flavor in geometry and matrix models