libprocessgroup: Add fd caching support for SetProcessProfiles

Process profiles operating on paths that do not depend on pid or uid of
the process can cache the fd of the file they are operating on. Add
support for fd caching similar to how SetTaskProfiles caches the fd
of the file it needs to write to.

Bug: 215557553
Signed-off-by: Suren Baghdasaryan <surenb@google.com>
Change-Id: Ie73ebcbbf1919d90409f40c1f6b08743f4edf97c
Merged-In: Ie73ebcbbf1919d90409f40c1f6b08743f4edf97c
4 files changed