Set lock_timeout for every material