I tried locking my indexer programmatically with this code as I used to do:
$indexer = Mage::getSingleton('index/indexer');
$indexer->lockIndexer();
I noticed that my indexer didn't get locked and when i went looking in the core files I saw it was deprecated. Is there any other way to lock the indexer,? I looked into it and didn't exactly see one.