lsyncd: don't try to define incomplete resources

Fixes #24699.