[sr-dev] git:kamailio_3.0: core: fix return not working inside a while() loop