Carrollian partition functions and the flat limit of AdS | Synapse