Time-resolved and static-ensemble structural chemistry of hydroxymethylbilane synthase