pkg/watch: fix potential deadlock