Holographic Bjorken flow of a hot and dense fluid in the vicinity of a critical point