[BTLS]: Use `int64_t` instead of `long` in the native API. (#3857)