How to dump / restore mysql.user
Following the comment by Akina:


  Edit dump file, remove all DDL statements from it. Restore data only - LOCK TABLESuserWRITE; INSERT INTOuserVALUES ... ; UNLOCK TABLES;.


I did it by taking only the data saved on the file and insert them into mysql.user like

INSERT INTO mysql.user VALUES(...)