There are locking axles that replace the quick release axles, to do what you described. A couple companies I've heard of (but haven't tested myself):
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments