Better warnings when minherit/madvise fails

See legacy/trac#30614 (moved) -- our current behavior here is to give a BUG message, which doesn't help the user understand what to do.