lib: trusty: Add `HSET_MOD_WITH_COOKIE`

Adds a variant of `HSET_MOD` that requires the provided cookie to
match the cookie that was previously stored with the handle.

Bug: 382291660
Test: tipc.test && authmgr_be_lib.test
Change-Id: I04947f83b7698cbfde897c1127e419ef1207af1d
2 files changed