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.