Bubble entrapment condition in Bingham materials