kbuild: factor out genksyms command from cmd_gensymtypes_{c,S}