Disable Inline Editing of Fields in Profile Form
It looks like this was a bug in CiviCRM. I have written a fix and submitted a pull-request for review. Your testing and feedback can help expedite the review process to get it accepted into the codebase.

https://github.com/civicrm/civicrm-core/pull/12312