It's actually Chinese (亡羊补牢 from 戰國策).
Chinese 망양보뢰 means that it is not too late to fix the cowshed after lost. Korean, however, shows the useless of the fixing activity. Later connotes the regret.
:)
source: http://www.ntnu.edu.tw/tcsl/yuyanwenhua/96/downloads/languag...
It's actually Chinese (亡羊补牢 from 戰國策).