Lock options, including scope for callback functions.