fix issue 9677:  Crash on setting length property of array 64 bit

The bad codegen is caused by _tls_array being assumed an "int", but it is a pointer array.
Other platforms other than Win64 might be affected aswell.