What is the correct order for using a lock object?