trie: add shl_trie_entry() helper

This helper returns the surrounding object of a generic trie entry. It's
basically a type-safe wrapper around offsetof() which limits the use to
something like container_of().

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>