python: updated multiprocessing pipe example to have write to share pipe wrapped in lock