EbMalloc: return EB_ErrorInsufficientResources for thread/semaphore/mutex create fail
else it will crash ffmpeg when we create resource failed this patch also do null check for EB_DESTORY_xxxx
This need to work with https://github.com/OpenVisualCloud/SVT-AV1/pull/504