What if someone wants to lock his bitcoin for his future generation and wants to set up a lock for 10 years so that his children will not be able to transfer these funds for the next 10 years, or a business owner wants to pay his workers monthly salary in bitcoin
I think they already have this kind of features in bitcoin. It's called signed transaction. Basically It's a kind of transaction which have a lock period. This kind of transaction is only valid after a certain amount of time. You can check the post below from LoyceV about this.
Topic link:
https://bitcointalk.org/index.php?topic=5180850.0