[NCFTP] Check _DEBUG with #ifdef, not #if (#1616)