Update ClassMetadataInfo.php

Backporting  Fix the "Erroneous data format for unserializing" error message #1045  to the 2.4 branch