monitor: Fix unsafe sharing of @cur_mon among threads