Gilbert, Roger Pomeroy, active 1822-1830, Major military sec Corfu