Made all debug flags in position::pos_is_ok static

No functional change.