make lazy attachments save in a single couch request

Should improve build times, has been on staging for a month with no issues

http://manage.dimagi.com/default.asp?132344