Kashmir: Court upholds top lawyer's detention