Return a process-safe wrapper object for a ctypes object which uses lock to synchronize access. If lock is None (the default) then a multiprocessing.RLock object is created automatically.
multiprocessing.sharedctypes.synchronized(obj[, lock])