Core: Fix warnings in JitRegCache

Does this need to be a cast or can we just use int in the loop or pass size_t to GetDefaultLocation?