samples: use non-racy method for /proc/marker-example creation