Fix ClassMetadataInfo::invokeLifecycleCallbacks() to use instanceof inst...

...ead of an exact check.