[lib][trusty] Add helper to get trusty_thread from thread_t

Getting a trusty_thread from a thread_t can be useful, e.g. to find
memory regions mapped into an app corresponding to the thread.

Bug: 149918767
Change-Id: I85f2076d5de36f98c27f3074bc6178711e73eaf4
1 file changed