Shut-off ball valves with locking device