When “Waitress” debuted in 2016, the musical comedy became the first Broadway production in which women filled the primary creative positions, including direction, book, choreography, costume design and musical direction. According to songwriter and lyricist Sara Bareilles, this history-making lineup was a happy accident. “It wasn’t a tacit agenda,” Bareilles said via phone from New York.