vah264enc: lock access to properties
After properties setters and getters their reading and modification aren't locked anymore, so there's a risk of race conditions since properties normally are set from another thread.
We might split the modification of properties and configuration, and later the property notification if they changed.