Certain locally nilpotent varieties of groups