Cleanup of names/argument, no functional changes.
Now properly locking the d3dcontext inside present.