\def\synchronizefootnotes%
  {\ifvoid\footins\else\insert\footins{\unvbox\footins}\fi}

\appendtoks \synchronizefootnotes \to \everypar

\input footbug2.tex

