[subscriber] resubscribe if statefs is respawned

if statefs is respawned file handle becomes stalled and subscriber
should try to reconnect. It does it using O(n^2) algo till some maximum
time

Signed-off-by: Denis Zalevskiy <denis.zalevskiy@jolla.com>