closed issue#4123:fixed thread deadlock if new functions are added in callback.
Merge pull request #5451 from Dhilan007/develop_movePDC

closed #4123:fixed thread deadlock if new functions are added in callback.