[PATCH 6.1 19/96] bpf: Refactor some inode/task/sk storage functions for reuse