A Possible Mechanism for Boundary Layer Mixing and Layer Formation in a Stratified Fluid