Hi JAJM,
Boxcryptor itself does not offer this feature as Boxcryptor's main purpose is to keep your files secure within your cloud.
You may try to create a scheduled task closing Boxcryptor triggered when you lock your PC.
Or you may look for a third party tool.
Unfortunately, I can not name a product due to our policy.
Thanks for your understanding.
Kind regards,
Richard