gpio: [js] convert claim/release to claimSync/releaseSync