Fix trait bug where the standard trait func names crash the memory allocator, because zend class
destructor calls zend_clear_trait_method_name() which efrees trait function names in SMA storage.
I've modified the opcache zend_prepare_function_for_execution() to estrdup this name in this
case so the efree works properly.