[sr-dev] git:5.2:bdced086: core: proper check for allocation of route_locks_size