cleanup debug stuff in gate lock