[PATCH 6/7] ntdll/loader: Prevent user after free (Coverity)