s3:locking: add function share_mode_cleanup_disconnected()