Don't open a new cursor for each background write in WiredTiger.

Also some space/tab cleanup.