IB/core: Introduce GID attribute get, put and hold APIs