update LockTraitsBoost to handle arbitrary duration types