Fix two bugs in moduleTypeLookupModuleByID().
Fix two bugs in moduleTypeLookupModuleByID().

The function cache was not working at all, and the function returned
wrong values if there where two or more modules exporting native data
types.

See issue #4131 for more details.

JackieXie168/redis,JackieXie168/redis,JackieXie168/redis,JackieXie168/redis