Fixing thread safety issue with rkClient in SFRestAPI