The pte_chain_unlock() needs to be outside the ifdef.
Attach a file by drag & drop or click to upload