modify the locking buffer->mutex to include surface_commit