A Generalized Configuration Model With Triadic Closure