The Ndef class has a makeReadOnly method (http://developer.android.com/reference/android/nfc/tech/Ndef.html#makeReadOnly())
To get an instance of that object you'll use Ndef.get(tag). Take a look at the advanced NFC tutorial to see how to get the tag object (http://developer.android.com/guide/topics/connectivity/nfc/advanced-nfc.html)