thread_executor: avoid creating long integers
thread_executor: avoid creating long integers

Repeated multiplication by 2 triggers Python long integers, and
eventually that will result in the execution thread holding the
GIL for execessive amounts of time.

alexey4petrov/reinteract,alexey4petrov/reinteract,alexey4petrov/reinteract