Fix lockchan=0 warning case