Improve creating of local copies and appending then to the chain

* add a dedicated function to create local copies with pNext;
* add vk_struct_chain_iterator to attach structs into the chain.

Test: make
Bug: 131181334
Change-Id: I963bc70541650b9ef0a75d464a57d8223504dc07
Merged-In: I754efa82be381d001cbd50190dd98fd6b2f66bfb
2 files changed