Transient magnetoelastic coupling in CrSBr