Add type annotations to `synapse.storage.databases.main.devices`.