Make e_attachment_set_file_info() thread-safe.

Missed this one in commit 9058c6f85dc49f9500e7e67819acfd8c0d2d369c.