Remove use of locals() in catkin.builder module