[GR-54904] Initialize ErrorContext for the correct thread
The running thread might differ from the thread argument, as documented.
[GR-54905] Allow Truffle NFI Panama to use Linker#{downcallHandle,upcallStub} without warnings
Without this it would warn:
WARNING: A restricted method in java.lang.foreign.Linker has been called
WARNING: java.lang.foreign.Linker::downcallHandle has been called by com.oracle.truffle.nfi.backend.panama.ErrorContext in module com.oracle.truffle.truffle_nfi_panama
WARNING: Use --enable-native-access=com.oracle.truffle.truffle_nfi_panama to avoid a warning for callers in this module
WARNING: Restricted methods will be blocked in a future release unless native access is enabled
[GR-54904] Initialize ErrorContext for the correct thread
[GR-54905] Allow Truffle NFI Panama to use Linker#{downcallHandle,upcallStub} without warnings