Gravitational microlensing of gamma‐ray bursts at medium optical depth