File locking on channels