Release handler lock after processing results to avoid deadlock