solid magnesium has a to small surfase area to ignite, by normal flames, it might burn wenn you put a blowtorch on it, but i doubt that would happen exidentally !
shavings ignite eayer because of the much larger surfase area. Carry shaving should be fine, if it is in a closed container. Don't forget that shavings oxideze easyer if exposed to air.
_________________________