Is it actual server hardware? I’ve seen some very weird things with real servers that take ages to reboot (I was assuming it was self checking or something). Are you sure its hung, and not just very slow to shutdown/reboot?
Is there any serial/monitor output before the hang?
Direct link to skinners comment: https://github.com/systemd/systemd/issues/15004#issuecomment-2264687287