Usually the read-only mode releases its lock after 5-10mins but if you need to access it right away, you can unlock it if you have access to Settings.
Go to Settings > Security > Record Locking Manager.
If there are open assessment or record you will see them listed with the resident name and the user who opened it. Click on the name you want to unlock. This action will unlock the record.