Sound interesting!!!
you may use sdlock utility from here .
you need to crosscompile source so that you can lock unlock sdcard form linux,
Now for uboot, you may need to develop code and make same utility as sdlock for uboot. And then you can think to add password to arguments.
Best luck