as for as your question "How to lock USB configuration to MTP (Media transfer Protocol)?" i would like to get your attention on this howtogeek guide.. Do Checkout this Android USB Connections Explained: MTP, PTP, and USB Mass Storage
i hope it'll clear all your concerns!