A snake's digestive tract is a fairly straight shot compared with many other animals, and they can pass some decent sized pieces if need be, so it's pretty unlikely that a wood shaving will cause a blockage. If they ate a whole bunch of them at once, it might.