added locking on svg files for appending