The LOCK TO MODIFY DETAILS option is used to ensure that user programs lock the master record before they add, delete, or modify records belonging to the master. This guarantees that two programs cannot concurrently modify records subordinate to the same master.
The LOCK TO MODIFY DETAILS option is reset by default. It is set by specifying LOCK TO MODIFY DETAILS or LOCK TO MODIFY DETAILS = TRUE.