UMass Memorial Health filed with the state to close Leominster Hospital’s maternity unit by Sept. 22.