Changeset #5738 Breaks plugins loading (Still)

Continuing from
http://groups.google.com/group/rubyonrails-core/browse_frm/thread/f6a655492e571aa2

This is the second time this plugin loading patch was committed and is
still broken. I can only reproduce the error running in production
mode.

Can changeset #5738 please be revert (again).