lock in vs restrict

lock in

verb
  • To prevent from escaping or deteriorating. 

  • To fix the value of (something potentially variable). 

  • To secure (someone or something) in a locked enclosure. 

restrict

verb
  • To restrain within boundaries; to limit; to confine 

  • To consider (a function) as defined on a subset of its original domain. 

How often have the words lock in and restrict occurred in a corpus of books? (source: Google Ngram Viewer )