Department-store chain Nordstrom is laying off a total of 300 workers in Massachusetts as it plans to close two stores.