I've done some research for a friend about when the reboot() system call was added, and how it related to the sync, sync, sync dance.

https://bsdimp.blogspot.com/2020/07/when-unix-learned-to-reboot2.html

may be of interest. Please do let me know if I've gotten something wrong...

Warner