unlocking mutex in handle_callback_response

Because of mutex lock, it was not possible to call other api's within a notification callback. Unlocking it to be able to do so.
Changing test case to handle locking