Fix issue #1054

Make extent primitive in picking Sandcastle example synchronous.