Update couchdb.py

Modifying locking as suggested.
Update multiapp.py

Updating fix as suggested by OLT.
Merge branch 'couchdb-init'
Merge branch 'multiapp-service-reinit'