Those socks are for extremely old laws. Gaijin have
always been required to carry their passport or gaijin card, and they have always stuck to it. If you can speak Japanese, tell them an address, phone number, and are white, you can probably get away with it. Middle eastern, African, or under the weird chance Asian and they spot you? You were (and are) fucked.
Detainment is unlikely. It's really hard to get arrested. They just take you to the station, talk to you, and make a Japanese friend come pick you up. No booking or holding sell. Just a smokey room (been there, done that).
I was in Iranian drug dealer alley once and they had my wife bring the passport down as the hotel was across the street. I had to of course explain why I spoke Japanese but didn't live there, and of course knew that I was supposed to carry my passport but didn't.