An office building that once was the Oakland Masonic Center has been taken by its lender through a foreclosure.