fixed lock percentage in case where lockTime > totalTime

Fix for issue  #56