allocateInterpreterIndex

Allocate the next interpreter index in [0..maxInterpreters) thread-safely.

Return

A new unique interpreter index.