Paul Mescal turns songwriter on Gracie Abrams’s new LP, an album of dark thoughts lurking beneath polite songs