[sr-dev] git:master:403de77c: core: proper check for allocation of route_locks_size