The directorial debut adapts Walter Mosley’s novel into a confined thriller that asks who gets to write history.