Capillarity-controlled entrainment of liquid by a thin cylindrical filament moving through an interface