A boy has been charged in connection with an arson attack on a synagogue in northwest London.