Locking translation axis for multiple objects
Select all your objects, lock the channel, then right click on one of the lock icons and "copy to selected" to copy the locked status to the other objects.