Fix build error when configSUPPORT_STATIC_ALLOCATION and configNUM_THREAD_LOCAL_STORAGE_POINTERS were greater than zero at the same time. Allow the pdMS_TO_TICKS macro to be overridden by a definition in FreeRTOSConfig.h.