Can we lock object repository
we can use version control tools to lock object repository externally.
If shared OR is being used, then whoever opens the OR first puts a lock on the file.
Otherwise there is no way to lock OR's from QTP.
You may have to consider taking regular back up to avoid major issues if the OR is corrupted or some objects edited by mistake or use a version control tool and grant only read access to all.
-- Here to Learn and share ---