Make unlock/yield order configurable.

First of all, thanks for writing this gem. We ran into a situation where we wanted to expire locks before the server middleware yields. This PR would make the ordering configurable. I wasn't too sure about how to name the option parameters, but I hope they are fine.