ArrayAccess compatibility for pthreads objects