link_temp_to_file: call adjust_shared_perm() only when we created the directory