Solution
So, here is the solution of the last mechanism problem:

The only answer came from an anonymous anon and his answer was absolutely right.
P.S. In fact people do this reaction in two steps: first they condense acetone and hydrazine an then it is heated in the presence of ZnCl2. Sorry if I confused some of you by not writing the details of this reaction.

