collector: simplify code in the update function
provision/docker: use mutex to protect access to execut

Fixes tsuru-race build.