Add checks locked nodes to db api

Checks that node is locked added to methods
destroy_node(), update_port(), destroy_port()
in db api.
Exception NodeLocked raised in case locked node.
Tests updated respectively.

Change-Id: I3218df016d35f80df7a707fd3f3c6dd40db81fd2
Merge "Add checks locked nodes to db api"