Fixed a deadlock which occoured now when the threadlock actualy works.