[AS7-6779] add controller client compatibility test
fix race in controller lock
[AS7-5439] wait for operations to complete before shutting down the server