Locking of brake cylinders