linksync.py: remove filter()

filter and lambda are equivalent to a list comprehension, but slightly
slower because calling into a Python function is slow. The list
comprehension is considered more "Pythonic".

This saves us about 0.3s on my setup.