Add use of proper locks to debug_node_api calls
It should fix random problems related with use of the API, debug_set_vest_price
in particular, that is now frequently used in tests.
It should fix random problems related with use of the API, debug_set_vest_price
in particular, that is now frequently used in tests.