After an extensive investigation, we found that there is an Outsystems supported solution for this use case:
A utility from OutSystems UI named ButtonLoading allows a user to disable the button while showing a loading icon. For more details check the documentation.