daemon: Fix dead-lock problem when routing using static routing extension