Try harder to cleanup after a failed wiredtiger_open call.

References issue #427
Minor style change, don't test pointer as if it's a boolean, don't check
if a pointer is NULL before freeing it.
Merge pull request #482 from wiredtiger/open-cleanup

Try harder to cleanup after a failed wiredtiger_open call.