[PATCH 3/6] internal: Add STRLIM macro for checking string length using strnlen()