Fixed race condition when dispatch and context assignment may happen not
simulataniously
Authored by: artyom-beilis 2010-08-23
Parent: [r1377]
Child: [r1379]