MDOFunction cant be serialized

from pickle import dumps
from gemseo.core.mdofunctions.mdo_function import MDOFunction
dumps(MDOFunction(1, "1"))

raises: RuntimeError: Synchronized objects should only be shared between processes through inheritance

This is because of the bad handling of the function calls counters during serialization.