detain vs lock someone up

detain

verb
  • To put under custody. 

  • To seize goods for official purposes. 

  • To keep back or from; to withhold. 

  • To keep someone from proceeding by holding them back or making claims on their attention. 

lock someone up

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