add support for shared memory in joblib