made wallet#sign synchronous

Fixes #1677