Added runtime check to disable pinning in the example

Signed-off-by: Mattt Thompson <m@mattt.me>