Implement packages.setLocks action (fate#312359)
changes 0.9.6