HRCPP-179 ACCESS_VIOLATION when running the JNI tests on 32bit JVM on Windows

Store a global reference inside RelayBytes instead of a local one for the jbyteArray.