input_item: add and use functions to get all category/infos
This new function will get a copy of all category/infos.
This will require more memory and copy than the legacy method, but it will allow UIs to setup widgets with an unlocked item. Furthermore, it is C++ compatible.
See #28507 (closed)