Nineteenth-Century Britain was famously prim about sex – and homosexuality in particular. Or was it? The life and work of the painter Simeon Solomon seem both to confirm and challenge this view, writes Holly Williams.