added atomic_configure_file function to catkin

Also made catkin use it in a few places. This was
done to prevent errors when building multiple
catkin packages into the same devel space in
parallel.
Merge pull request #566 from ros/atomic_configure_file

added atomic_configure_file function to catkin