add setCancel method
Different error codes are required when polkitd process distinguish different failure operations. But since now, POLKIT_ERROR_CANCELLED is not added as return. In this case, when cancel button is clicked by user, only POLKIT_ERROR_FAILED can be chosen.