Patch the initfunction of each slot definition metaobject.