added lock to sync actuaEventos and adquiereEventos threads