Fix unwatch and remove for appstate sync

Unwatchig a property on a sync object now removes the watch listener.
Also fix reference counting for sync object. Reflect changes in updated
tests.

Jira-issue: WP-235