Make e_attachment_set_file_info() thread-safe.

Missed this one in commit 9058c6f85dc49f9500e7e67819acfd8c0d2d369c.

(cherry picked from commit 03972535919d96d55a409988f4436e0a5e54b96b)