Fix universal builds of libgcrypt.

SIZEOF_UNSIGNED_LONG was incorrectly set to 8 on i386, use a patch from
macports to make it depend on arch.

Also added a test that shows libgcrypt hanging without this patch.