avoid deprecation warning in sample code

If using `Account.find(1, lock: true)` , printed message similar to the following:

> DEPRECATION WARNING: Passing options to #find is deprecated. Please build a scope and then call #find on it.

So I modified sample code.