trace: introduce prof-lock command