Application of a dynamic subgrid-scale model to turbulent recirculating flows