libdirect: Fix endless recursion and crashes when maximum number of threads is reached.
libdirect: Fix endless recursion and crashes when maximum number of threads is reached.

kevleyski/DirectFB-1,jcdubois/DirectFB,kaostao/directfb,sklnet/DirectFB,lancebaiyouview/DirectFB,Distrotech/DirectFB,djbclark/directfb-core-DirectFB,kaostao/directfb,DirectFB/directfb,lancebaiyouview/DirectFB,lancebaiyouview/DirectFB,Distrotech/DirectFB,kevleyski/DirectFB-1,deniskropp/DirectFB,DirectFB/directfb,lancebaiyouview/DirectFB,DirectFB/directfb,deniskropp/DirectFB,kaostao/directfb,djbclark/directfb-core-DirectFB,deniskropp/DirectFB,sklnet/DirectFB,sklnet/DirectFB,kevleyski/directfb,djbclark/directfb-core-DirectFB,mtsekm/test,mtsekm/test,kevleyski/DirectFB-1,deniskropp/DirectFB,dfbdok/DirectFB1,kevleyski/DirectFB-1,jcdubois/DirectFB,mtsekm/test,jcdubois/DirectFB,djbclark/directfb-core-DirectFB,dfbdok/DirectFB1,kevleyski/directfb,sklnet/DirectFB,kevleyski/directfb,kevleyski/directfb,Distrotech/DirectFB,dfbdok/DirectFB1