Bank of America Corp.’s online-banking platform went down for several hours Friday, leaving thousands of customers locked out of their accounts before service was restored. The outage started in the morning and began to be resolved midday. Bank of America’s website and app were both at full capacity by 2 pm in New York, according to a company spokesman.