Creates a new Attach from the data.
The data used to create the Attach
The function used to free the data when the create Attach is destroyed
The userdata used for the free function free_fn
free_fn
The newly created Attach