PHP-1011: Fix MongoDB inheritance of write concern strings

The default values for default_w and default_wstring are -1 and NULL, respectively. There should never be a point where both options have non-default values.

Additionally, avoid a memory leak by freeing default_wstring if we would replace a previously set value for the "w" option.