When RTC is enabled, let the "Join" action link in the post list turn into "Edit" after the post lock expires. Do this by rendering both "Edit" and "Join" as separate spans and toggling visibility via CSS using the `wp-collaborative-editing` class that heartbeat already manages. Do the same to aria-label with screen-reader-text spans so the accessible name stays in sync with the visible text across lock state changes.
Developed in https://github.com/WordPress/wordpress-develop/pull/11346.
Follow-up to [62074].
Props shekharnwagh.
See #64622.
Built from https://develop.svn.wordpress.org/trunk@62146
git-svn-id: http://core.svn.wordpress.org/trunk@61428 1a063a9b-81f0-0310-95a4-ce76da25c4cd