Added "GetTaskPrologue" virtual function

"void GetTaskPrologue();" is run in a function "GetTask" right
after lock_guard