add retrying when redis error while locking
add retrying when redis error while locking

We retry the full task if the error happen while locking if it's while
releasing the lock we only retry to release it and if we don't successed
after 5 times we continue hopefuly we won't need to do something on that
instance before the timeout of the lock :(
Refer to: http://jira.canaltp.fr/browse/NAVITIAII-2171

pbougue/navitia,xlqian/navitia,patochectp/navitia,antoine-de/navitia,CanalTP/navitia,patochectp/navitia,CanalTP/navitia,kinnou02/navitia,kadhikari/navitia,pbougue/navitia,patochectp/navitia,patochectp/navitia,kinnou02/navitia,xlqian/navitia,kinnou02/navitia,Tisseo/navitia,xlqian/navitia,kadhikari/navitia,CanalTP/navitia,CanalTP/navitia,xlqian/navitia,Tisseo/navitia,antoine-de/navitia,Tisseo/navitia,kadhikari/navitia,pbougue/navitia,CanalTP/navitia,Tisseo/navitia,antoine-de/navitia,kadhikari/navitia,Tisseo/navitia,pbougue/navitia,antoine-de/navitia,xlqian/navitia,kinnou02/navitia