recorderendpoint: Do signal on a condition variable with mutex locked

Change-Id: Ie9ab9d61ec9a2ab35d66abd6c5cde05a0078f9ae